package org.vincen.jarvis.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.vincen.jarvis.files.dao.EmployeeDao;
import org.vincen.jarvis.files.pojo.Employee;

@Service
public class EmployeeService {
	
	@Autowired
	private EmployeeDao dao;
	
	public Employee createEmployee(int id, String name, int salary){
		return dao.createEmployee(id, name, salary);
	}
	public Employee removeEmployee(int id){
		return dao.removeEmployee(id);
	}
	public Employee raiseEmployeeSalary(int id, int raise){
		return dao.raiseEmployeeSalary(id, raise);
	}
	public Employee findEmployee(int id){
		return dao.findEmployee(id);
	}
	public List<Employee> findAllEmployees(){
		return dao.findAllEmployees();
	}
	
}
